package com.bocloud.cmp.server.controller.stats;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.bocloud.cmp.interfaces.stats.DashboardStatsService;
import com.bocloud.common.model.BsmResult;

@RestController
@RequestMapping("/stats")
public class StatsController {

	@Autowired
	private DashboardStatsService dashboardStatsService;

	/**
	 * dashboard信息
	 * 
	 * @param user
	 * @return
	 */
	@RequestMapping(value = "/dashboard", method = { RequestMethod.GET })
	public BsmResult dashboard() {
		return dashboardStatsService.stats();
	}

}
